﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;
using DeyuMvc.Dbs;

namespace DeyuMvc.Models
{
    public class Grade
    {
        [DisplayName("年级ID")]
        [Key]
        public string IdGrade { get; set; }

        [DisplayName("年级名")]
        public string GradeName { get; set; }

        [DisplayName("年级组长")]
        public string GradeManager { get; set; }
    }

    public class GradeBll:DBCommon<Grade>
    {
        public override string TableName
        {
            get { return "dy_grade"; }
        }

        public override string PrimaryKey
        {
            get { return "IdGrade"; }
        }

        public override string ConnKey
        {
            get { return "default"; }
        }

        public override string ParaF
        {
            get { return "@"; }
        }
    }
}